package eteam.aps.systeminterface.model.reqparam;

import eteam.aps.common.QueryFilter;
import eteam.aps.systeminterface.model.enums.StateEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "分页查询角色请求参数")
public class QueryRoleParam extends QueryFilter {
    @ApiModelProperty("检索关键字")
    private String keyword;
    @ApiModelProperty("筛选状态")
    @NotNull(message = "状态不合法")
    @Max(value = 1, message = "状态不合法")
    @Min(value = -1, message = "状态不合法")
    private Integer state = StateEnum.Delete.getValue();
}
